package com.atguigu.wechat.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import org.springframework.stereotype.Component;

/**  读取配置文件，进行赋值
 * @author dale
 * @title WechatAccountConfig
 * @date 2023/6/7 11:32
 */
@Data
@Component
@ConfigurationProperties(prefix = "wechat")  //表示以wechat开头读值
public class WechatAccountConfig {
    private String mpAppId;
    private String mpAppSecret;
}
